// 存 取 删

const KEY = 'wanzi-token'
function saveToken(obj) {
    localStorage.setItem(KEY,JSON.stringify(obj))
}

function getToken() {
    return JSON.parse(localStorage.getItem(KEY))
}

function removeToken() {
    localStorage.removeItem(KEY)
}

export {saveToken,getToken,removeToken}